package xby.study.annotations.demo1;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Method[] ms = AA.class.getMethods();
        System.out.println(ms.length);
        for (Method m : ms) {
            System.out.println("-------------------------------------------------------------");
            System.out.println(m);
            Annotation[] as = m.getAnnotations();
            System.out.println(Arrays.toString(as));
            System.out.println("-------------------------------------------------------------");
        }

    }
}
